package com.hospital.registration.web;


import com.hospital.registration.entity.Doctor;
import com.hospital.registration.service.IDoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 医生表 前端控制器
 * </p>
 *
 * @author 史永康
 * @since 2020-10-22
 */
@RestController
@RequestMapping("/doctor")
public class DoctorController {

    @Autowired
    IDoctorService iDoctorService;

    @RequestMapping("/list")
    public List<Doctor> findAll(){
        return   iDoctorService.list();
    }

}
